<?php
namespace haibao\cms\model\data;

class FeatureDefine extends Base{
	const CONDITION_FIELD_NAME_FEATURE_NAME = 'FeatureName';
	const CONDITION_FIELD_NAME_KEYW0RDS = 'Keywords';
	const CONDITION_FIELD_NAME_DESCRIPTION = 'Description';
	const CONDITION_FIELD_NAME_HTML_TITLE = 'HtmlTitle';
	const CONDITION_FIELD_NAME_HTML_KEYWORDS = 'HtmlKeywords';
	const CONDITION_FIELD_NAME_HTML_DESCRIPTION = 'HtmlDescription';
	const CONDITION_FIELD_NAME_ISSUE = 'Issue';
	const CONDITION_FIELD_NAME_SERIAL_ID = 'SerialId';
	const CONDITION_FIELD_NAME_CLASS_ID = 'ClassId';
	const CONDITION_FIELD_NAME_COLUMN_ID = 'ColumnId';
	
	public $FeatureName = '';
	public $Keywords = '';
	public $Description = '';
	public $HtmlTitle = '';
	public $HtmlKeywords = '';
	public $HtmlDescription = '';
	public $Issue = '';
	public $SerialId = 0;
	public $ClassId = 0;
	public $ColumnId = 0;
	public $CreateTime;
	public $CreateBy = 0;
	public $UpdateTime;
	public $UpdateBy = 0;
	
	public $Tags = array();
	public $Events = array();
	
	public $FeaturePublishes;
	public $Serial;
	public $Deletable;
	public $IsPreview;
	
	public function __construct(){
		parent::__construct();
		
		$this->stringField('FeatureName', 'FeatureName',false);
		$this->stringField('Keywords', 'Keywords',false);
		$this->stringField('Description', 'Description',false);
		$this->stringField('HtmlTitle', 'HtmlTitle',false);
		$this->stringField('HtmlKeywords', 'HtmlKeywords',false);
		$this->stringField('HtmlDescription', 'HtmlDescription',false);
		$this->stringField('Issue', 'Issue',false);
		$this->intField('SerialId', 'SerialId',false);
		$this->intField('ClassId', 'ClassId',false);
		$this->intField('ColumnId', 'ColumnId',false);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('UpdateTime', 'UpdateTime',true);
		$this->intField('UpdateBy', 'UpdateBy',true);
		
		$this->setTableName('FeatureDefine');
	}
	
}